/**
 * 
 */
package badugi;

/**
 * @author aleks
 *
 */
public class CardException extends Exception {
	private static String[] namesOfErrors = {"Invalid code of colour (1-4)", "Invalid value of the card (1-13)"};
	private int nrOfEx;
/**
*
*@param n
*/
	CardException(int n) {
		nrOfEx = n;
	}
/**
*
*/
	public String getMessage()
	{
		return namesOfErrors[nrOfEx];
	}
}
